Part Number Hot Search : 
RSS2362G BC846B 5X40LSSI 13000 N748961N N748961N AM075NF1 0155J160
Product Description
Full Text Search
 

To Download W65C134SPL-8 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  western design center w65c134s march 1, 2000 w65c134s data sheet
western design center w65c134 s march 1, 2000 wdc reserves the right to make changes at any time without notice in order to improve design and supply the best possible product. information contained herein is provided gratuitously and without liability, to any user. reasonable efforts have been made to verify the accuracy of the information but no guarantee whatsoever is given as to the accuracy or as to its applicability to particular uses. in every instance, it must be the responsibility of the user to determine the suitability of the products for each application. wdc products are not authorized for use as critical components in life support devices or systems. nothing contained herein shall be construed as a recommendation to use any product in violation of existing patents or other rights of third parties. the sale of any wdc product is subject to all wdc terms and conditions of sales and sales policies, copies of which are available upon request. copyright (c) 1981 -20001by the western design center, in c. all rights reserved, including the right of reproduction in whole or in part in any form.
western design center w65c134 s march 1, 2000 table of contents introduction ................................ ................................ ................................ ................................ ............... 1 section 1 w65c134s function description ................................ ................................ ......................... 2 1.1 the w65c02s static 8 -bit microprocessor core ................................ ................................ ....... 2 1.2 4096 x 8 rom ................................ ................................ ................................ .......................... 2 1.3 192 x 8 ram ................................ ................................ ................................ ............................ 2 1.4 bus control register ................................ ................................ ................................ ................. 2 table 1-1 bcr7 and be control ................................ ................................ .............................. 2 figure 1-1 be timing relative to resb input ................................ ................................ ......... 3 figure 1-2 bus control register ................................ ................................ ............................... 3 1.5 chip select enable register ................................ ................................ ................................ ...... 4 figure 1-3 chip select enable register ................................ ................................ ..................... 4 1.6 the timers ................................ ................................ ................................ ................................ 4 figure 1-3 timer control register one ................................ ................................ ..................... 5 figure 1-4 timer control register two ................................ ................................ ................... 6 1.7 interrupt flag registers ................................ ................................ ................................ ............. 7 1.8 interrupt enable registers ................................ ................................ ................................ ......... 7 figure 1-5 interrupt enable register one and interrupt flag register one ................................ . 8 figure 1-6 interrupt enable register two and interrupt flag register two ............................... 9 1.9 asynchronous i/o data rate generation ................................ ................................ .................. 10 table 1 -2 timer a values for baud rate selection ................................ ................................ .. 10 1.10 universal asynchronous receiver/tra nsmitter ................................ ................................ .......... 11 figure 1 -7 asynchronous transmitter mode with parity ................................ .......................... 11 figure 1 -8 asynchronous receiver data timing ................................ ................................ ...... 12 figure 1-9 acsr bit assignments ................................ ................................ .......................... 13 1.11 the serial interface bus ................................ ................................ ................................ ........... 14 figure 1-10 sib state register ................................ ................................ ................................ 14 figure 1 -11 sr0, sr1, sr2, and sr3 shift register ................................ ................................ 15 figure 1-12 sib control and status register ................................ ................................ ........... 16 figure 1 -13 serial interface bus message transmission timing diagram ................................ 19 figure 1-14 w65c134s serial interface bus wiring diagram ................................ ................. 20 figure 1 -15 bus address r egister ................................ ................................ ............................ 20 1.12 programming model, status register coding and memory map ................................ ................ 21 figure 1-16 w65c02s microprocessor programming model ................................ ................... 21 figure 1-17 w65c02s status register coding ................................ ................................ ........ 21 table 1-3 system memory map ................................ ................................ .............................. 22 table 1 -4 i/o memory map ................................ ................................ ................................ .... 23 table 1 -5 vector table ................................ ................................ ................................ ........... 24 table 1 -6 w65c134s 68 lead pin map ................................ ................................ .................. 25 section 2 pin function description 27 figure 2-1 w65c134s interface diagram ................................ ................................ ................ 27 figure 2-2 w65c134s 68 lead chip carrier pinout ................................ ................................ 28 figure 2-3 w65c134s 80 lead quad flat pack pinout ................................ ........................... 29 2.1 web write enable ................................ ................................ ................................ ................... 30 2.2 run and sync ................................ ................................ ................................ ...................... 30
western design center w65c134 s march 1, 2000 2.3 phase 2 clock output ................................ ................................ ................................ ............... 30 2.4 clock inputs, clock outputs ................................ ................................ ................................ ..... 30 2.5 bus enable and rdy input ................................ ................................ ................................ ..... 31 figure 2 -3 be timing relative to phi2 ................................ ................................ ................... 31 2.6 reset input/output resb ................................ ................................ ................................ ........ 32 2.7 po sitive power supply ................................ ................................ ................................ .............. 32 2.8 internal logic ground ................................ ................................ ................................ .............. 32 2.9 i/o port pins ................................ ................................ ................................ ............................ 32 2.10 address bus ................................ ................................ ................................ ............................. 33 2.11 data bus ................................ ................................ ................................ ................................ .. 33 2.12 positive edge interrupt inputs ................................ ................................ ................................ ... 33 2.13 negative edge interrupt inputs ................................ ................................ ................................ . 33 2.14 chip select outputs ................................ ................................ ................................ .................. 33 2.15 level sensitive int errupt request inputs ................................ ................................ ................... 34 2.16 non -maskable edge interrupt input ................................ ................................ .......................... 34 2.17 asynchronous receive input/transmitter output ................................ ................................ ...... 34 2.18 timer a input and output ................................ ................................ ................................ ........ 34 2.19 the serial interface bus pins. ................................ ................................ ................................ ... 34 section 3 timing, ac and dc characteristics ................................ ................................ ................... 35 3 .1 absolute maximum ratings ................................ ................................ ................................ ..... 35 table 3-1 absolute maximum ratings ................................ ................................ ..................... 35 3.2 dc characteristics ................................ ................................ ................................ ................... 36 table 3-2 dc characteristics ................................ ................................ ................................ .. 36 3.3 ac characteristics ................................ ................................ ................................ ................... 37 table 3-3 ac characteristics ................................ ................................ ................................ .. 37 3.4 ac parameters ................................ ................................ ................................ ......................... 38 table 3-4 ac parameters ................................ ................................ ................................ ........ 38 3.5 ac timing diagram notes ................................ ................................ ................................ ....... 39 3.6 ac timing diagrams ................................ ................................ ................................ ............... 40 figure 3-1 ac timing diagram #1 ................................ ................................ .......................... 40 figure 3-2 ac timing diagram #2 ................................ ................................ .......................... 41 figure 3-3 ac timing diagram #3 ................................ ................................ .......................... 42 figure 3-4 ac timing diagram #4 ................................ ................................ .......................... 43 figure 3-5 ac timing diagram #5 ................................ ................................ .......................... 44 section 4 ordering information ................................ ................................ ................................ ......... 45 section 5 application information ................................ ................................ ................................ .... 46 5.1 w65c134s block diagrams ................................ ................................ ................................ ..... 46 figure 5-1 w65c134s block diagram ................................ ................................ .................... 46 figure 5-2 w65c134s interrupt controller block diagram ................................ ..................... 47 figure 5-3 w65c134s timer 1 and 2 block diagram ................................ .............................. 48 figure 5-4 w65c134s timer a and m block diagram ................................ ........................... 49 figure 5-5 universal asynchronous receiver transmitter block diagram ................................ 50 figure 5-6 serial interface bus block diagram ................................ ................................ ........ 51 5.2 external rom startup with w65c134s mask roms ................................ .............................. 52 5.3 recommended clock and fclock oscillators ................................ ................................ ................ 53 figure 5 -7 oscillator circuit ................................ ................................ ................................ ..... 53 figure 5 -8 circuit board layout for oscillator circuit ................................ ............................. 54
western design center w65c134 s march 1, 2000 figure 5 -9 w65c134s resonator circuit ................................ ................................ ................ 55 5.4 wait state information and uses for the be pin ................................ ................................ .......... 55 5.5 figure 5-10 w65c134spcb embedded system development board block diagram ............... 56
western design center w65c134 s march 1, 2000 1 introduction the wdc w65c134s microcomputer is a complete fully static 8 -bit computer fabricated on a single chip using a low power cmos process. the w65c134s complements an established and growing line of w65c products and has a wide range of microcomputer applications. the w65c134s has been developed for hi -rel applications, and where minimum power is required. the w65c134s consists of a w65c02s (static) central processing unit (cpu), 4096 bytes of read only memory (rom), 192 bytes of random access memory (ram), two 16 bit timers, a low power serial interface bus (sib) configured as a token passing local area network, universal asynchronous receiver and transmitter (uart) with baud rate timer, one 16 -bit "monitor watch -dog timer" with "restart" interrupt, twenty -two priority encoded interrupts, ice interface, real -time clock features, bus control register (bcr) for external memory bus control, interface circuitry for peripheral devices, and many low power features. the innovative architecture and the demonstrated high performance of the w65c02s cpu, as well as instruction simplicity, result in system cost -effectiveness and a wide range of computational power. these features make t he w65c134s a leading candidate for hi -rel and other microcomputer applications. this product description assumes that the reader is familiar with the w65c02s cpu hardware and programming capabilities. refer to the w65c02s data sheet for additional information. key features of the w65c134s l cmos low power process l operating ta= -40 e c to +85 e c l single 2.8v to 5.5v power supply l static to 8mhz clock operation l w65c02s compatible cpu ? 8-bit parallel processing ? variable length stack ? true in dexing capability ? fifteen addressing modes ? decimal or binary arithmetic ? pipeline architecture ? fully static cpu ? w65c816s 16-bit cpu compatible l single chip microcomputer ? many power saving features ? 56 cmos compatible i/o lines ? 4096 x 8 rom on chip ? 192 x 8 ram on chip l low power modes ? wait for interrupt ? stop the clock ? fast oscillator start and stop feature l twenty-two priority encoded interrupts ? brk software interrupt ? reset "restart" interrupt ? nmib non-maskable interrupt input ? sib interrupt ? irq1b level interrupt input ? irq2b level interrupt input ? 2 timer edge interrupts ? 7 positive edge interrupt inputs ? 5 negative edge interrupt inputs ? asynchronous receiver interrupt ? asynchronous transmitter interrupt l uart 7/8-bit w/wo odd or even parity l 16m byte segmented address space l 64k byte linear address space l 4 x 16 bit timer/counters l bus control register for external memory ? internal or external rom ? 8 decoded chip select outputs l surfa ce mount 68 and 80 lead packages l real time clock features l third party tools available
western design center w65c134 s march 1, 2000 2 section 1 w65c134s function description 1.1 the w65c02s static 8 -bit microprocessor core the w65c02s 8 -bit microprocessor is the fully static (may be stopped w hen phi2 is high or low) version of the popular w65c02s microprocessor used in the apple iic and iie personal computer systems. the w65c02s is compatible with the nmos 6502 used in many control applications and personal computers. the small die size and low power consumption of the w65c02s offer an excellent choice as a cost effective core microprocessor in one -chip microcomputers. the w65c02s instruction set is compatible with the w65c802s and w65c816s, 16 -bit microprocessors and the w65c832s, 32 -bit mi croprocessor. 1.2 4096 x 8 rom the w65c134s 4096 x 8 bit read only memory (rom) usually contains the user's program instructions and other fixed constants. these program instructions and constants are mask -programmed into the rom during fabrication of the w65c134s device. the w65c134s rom is memory mapped from $f000 to $ffff. 1.3 192 x 8 ram the 192 x 8 bit random access memory (ram) contains the user program stack and is used for scratch pad memory during system operation. this ram is completely static in operation and requires no clock or dynamic refresh. the data contained in ram is read out nondestructively with the same polarity as the input data. in order to take advantage of zero page addressing capabilities, the w65c134s ram is assigned to both page zero memory addresses $0040 to $00ff and to page one stack addresses $0140 to $01ff. 1.4 bus control register (bcr) at memory address $001b 1.4.1 the bus control register (bcr) controls the various modes of i/o and external memory interface. 1 .4.2 during power -up the value of be defines the initial values of bcr0, bcr3 and bcr7, three bits in the bcr that set up the w65c134s for in -circuit -emulation (ice) or test modes. 1.4.3 when be goes high after resb goes high the bcr sets up the w65c134s for emulation. port 0 and 1 are the address outputs, port 2 is the data i/o bus and run is the multiplexed run function. (see run pin function description). 1.4.4 when be goes high before resb goes high, all bits in the bcr are "0". 1.4.5 after resb go es high be no longer effects the bcr register, and bcr may be written under software control to reconfigure the w65c134s as desired. 1.4.6 table 1 -1 indicates how bcr7 and be define the w65c134s configuration. table 1-1 bcr7 and be control bcr7 be w65c134s configuration 0 0 internal rom external processor (dma) 0 1 internal rom internal processor 1 0 external rom external processor (dma) 1 1 external rom internal processor figure 1-1 be timing relative to resb input
western design center w65c134 s march 1, 2000 3 7 6 5 4 3 2 1 0 bcr ($001b) external memory bus enable 0 = ports 0,1,2 are i/0 1 = ports 0,1,2 are address and data bus for external memory or i/o access port 44-47 edge sensitive interrupt input enable 0 = no edge interrupt inputs on p44-47 1 = edge interrupt inputs on p44-47 serial interface bus (sib) enable 0 = sib disabled 1 = sib enabled p64=sclk, p65=sdat, p66=chin, p67=chout and enable sib interrupt in-circuit-emulation (ice) enable 0 = run = run and w65c134s is in normal mode of operation 1 = run and all on chip addressed memory or i/o for reads or writes are output on the data bus (this is the emulation mode of operation) port 50-53 edge sensitive interrupt input enable 0 = no edge interrupt inputs on p50-53 1 = edge interrupt inputs on p50-53 port 54-57 edge sensitive interrupt input enable 0 = no edge interrupt inputs on p54-57 1 = edge interrupt inputs on p54-57 nmib, irq1b and irq2b input enable 0 = pins 40-42 are standard i/o 1 = p40=nmib, p41=irq1b, p42=irq2b inputs external rom enable 0 = internal rom at $f000-ffff 1 = external rom at $f000-ffff figure 1-2 bus control register (bcr) ($001b)
western design center w65c134 s march 1, 2000 4 1.5 chip select enable register pcs3)($0007) 1.5.1 pcs is the port 3 chip select register. the pcs allows each individual chip select to be active or non -active. when pcs30 -pcs37 are equal to a "1", then cs0b to c s7b will be active. when cs1b is active, the defined memory space for cs3b and/or cs6b is reduced. it is reduced by the memory space 0100 -011f for cs1b. when cs2b is active, the defined memory space for cs3b and/or cs6b is reduced. it is reduced by the memory space 0120 -013f for cs2b. 1.5.2 cs7b is automatically enabled when bcr7=1. 1.5.3 the w65c134s will use the internal ram as stack when pcs33 and pcs36 are disabled. if pcs33 or pcs36 are enabled then the off chip stack is used. 7 6 5 4 3 2 1 0 cs7b cs6b cs5b cs4b cs3b cs2b cs1b cs0b figure 1-3 chip select enable register 1.6 the timers 1.6.1 upon timer clock input negative edge the timer low counter is decremented by 1. 1.6.2 when t1 or t2 prescaler mode is enabled, (making timer low counter a divide -by -n+1 prescaler) then timer low counter is reloaded from timer low latch. monitor timer m does not have a prescaler mode. 1.6.3 a write to the timer low counter writes the timer low latch. 1.6.4 a read of the timer high or low counter reads the timer high or low counter. 1.6.5 upon timer clock input negative edge when the timer low counter reaches zero, the timer high counter is decremented by 1. upon timer clock input positive edge, when the timer high counter reaches zero, this sequence occurs: 1.6.5.1 timer 1 and 2 set their associated interrupt flag. if the interrupt is enabled the mpu is then interrupted and control is transferred to the vector associated with the interrupt. when timer m times out, the w65c134s is restarted: on -chip logic pulls resb pin low for 2 clk cycles and releases resb to go high, "restarting" the w65c134s. 1.6.5.2 the timer hi counter is loaded from the timer hi latch, and timer low counter is loaded from timer low latch. 1.6.6 a write to the timer 1, 2 or a high counter writes to the timer hi latch and this sequence occurs: 1.6.6.1 the timer hi latch is loaded from data bus. 1.6.6.2 the timer low counter is loaded from the timer low latch, and the timer hi counter is loaded from the timer hi latch. 1.6.7 timer m is disabled after resb and is activated by the first timer control register one (tcr10) transition from "0" to "1" (the first load of timer m). 1.6.7.1 the timer m counter is reloaded with the value in the timer m latches when the tcr10 bit 0 makes a transition from a "0" to "1". tcr10 transition from a "1" to a "0" has no effect on the timer.
western design center w65c134 s march 1, 2000 5 7 6 5 4 3 2 1 0 tcr1x($000a) monitor watch dog timer m load enable 0 to 1 transition loads the timer m from the timer m latches phi2 system timing clock select 0 = phi2 clock source is clk (clock) 1 = phi2 clock source is fclk (fast clock) fclk start and stop control 0 = stop fclk 1 = start fclk timer a enable 0 = ta clock disabled (counter stopped) 1 = ta clock enabled. this bit should be set to a 1 for uart operation timer a clock select 0 = timer a counts phi2 clock pulses 1 = timer a counts tin negative pulses. when acsr5=1, timer a and rxd are used for the uart and this bit should be cleared to "0". timer a output enable 0 = timer a output disabled 1 = timer a tout enabled. when acsr0=1, timer a and txd are used for the uart. timer a interrupt enable 0 = timer a interrupt disabled. 1 = timer a interrupt enabled. timer a edge interrupt flag 0 = timer a edge interrupt has not occurred. this bit cannot be set when uart is in operation. 1 = timer a edge interrupt has occurred. this interrupt vector is located at the asynchronous transmitter vector location. this bit is cleared to a "0" by writing a "1" to it. writing a "0" to this bit has no affect. figure 1-3 timer control register one (tcr1x) ($000a)
western design center w65c134 s march 1, 2000 6 7 6 5 4 3 2 1 0 tcr2x($000b) t1 clock enable 0 = t1 clock disabled (counter stopped) 1 = t1 clock enabled (counting clock as selected by tcr21) t1 clock select 0 = t1 counts phi2 clock pulses 1 = t1 counts clk clock pulses t1 prescaler enable 0 = 16 bit counter mode 1 = 8 bit prescaler with 8 bit counter mode t2 clock enable 0 = t2 clock disabled (counter stopped) 1 = t2 clock enabled (counting clock as selected by tcr24) t2 clock select 0 = t2 counts phi2 clock pulses 1 = t2 counts clk clock pulses t2 prescaled enable 0 = 16 bit counter mode 1 = 8 bit prescaled with 8 bit counter mode always 0 always 0 figu re 1-4 timer control register two (tcr2x) ($000b)
western design center w65c134 s march 1, 2000 7 1.7 interrupt flag registers (ifr1,ifr2) ($002c,$0008) 1.7.1 a bit of these registers is set to a "1" in response to a signal from a source. sources specified as level -triggered assert the correspondi ng ifr bit if an edge occurs and is held to a "1" as long as the irqxb input is held low. sources specified as edge -triggered assert the corresponding ifr bit upon and only upon transition to the specified polarity. note that changes for edge -triggered b its are asynchronous with phi2. 1.7.1.1 read of ifr1 and ifr2 a read from an ifr register transfers its value to the internal data bus. 1.7.1.2 write to ifr1 and ifr2 a write of a "1" to any bits of these registers disasserts those bits but has n o further effect when execution of that write instruction is completed; that is, the bit is reset by a pulse but not held reset. a write of a "0" to any bits of these registers has no effect. 1.7.1.3 interrupt priority if more than one bit of the int errupt flag registers are set to a "1" and enabled, the vector corresponding to the highest bit number asserted is used. for example, if both the ifr10 and ifr23 were asserted and enabled, then the vector corresponding to ifr23 would be used. for another example, if both the ifr13 and ifr20 were asserted and enabled, then the vector corresponding to ifr20 would be used. 1.8 interrupt enable registers (ier1,ier2) ($002d,$0009) ier1 and ier2 are the interrupt enable registers. reading an ier register re ads its contents and puts the value on the internal data bus. writing an ier writes a value from the data bus into the register. setting a bit in an ier to "1" permits the interrupt corresponding to the same bit in the ifr to cause a processor interrupt. also, if the run pin was low prior to the interrupt, the pin will go high if bcr3 = 0.
western design center w65c134 s march 1, 2000 8 ier1 bits 0-7 0=disable interrupt 1=enable interrupt ier1 ($002d) 7 6 5 4 3 2 1 0 priority logic - - - - - - - - ifr1 ($002c) 7 6 5 4 3 2 1 0 pe44 positive edge interrupt pe45 positive edge interrupt ne46 negative edge interrupt ne47 negative edge interrupt pe50 positive edge interrupt pe51 positive edge interrupt ne52 negative edge interrupt ne53 negative edge interrupt figure 1-5 interrupt enable register one (ier1) ($002d) and interrupt flag register one (ifr1) ($002c)
western design center w65c134 s march 1, 2000 9 ier2 bits 0-7 0=disable interrupt 1=enable interrupt ier2 ($0009) 7 6 5 4 3 2 1 0 priority logic - - - - - - - - ifr2 ($0008) 7 6 5 4 3 2 1 0 pe54 positive edge interrupt pe55 positive edge interrupt pe56 positive edge interrupt ne57 negative edge interrupt timer 1 edge interrupt timer 2 edge interrupt irq1b low level interrupt irq2b low level interrupt figure 1-6 interrupt enable register two (ier2) ( $0009) and interrupt flag register two (ifr2) ($0008)
western design center w65c134 s march 1, 2000 10 1.9 asynchronous i/o data rate generation (timer a) timer a provides clock timing for the asynchronous i/o and establishes the data rate for the uart. timer a operates as configured by tcr1x (timer control register one) and should be set up prior to enabling the uart. table 1 -2 identifies the values to be loaded into timer a to select standard data rates. although table 1 -2 identifies only the more common data rates, any data rate can be selected by using the formula: phi2 where n = - - - - - - - - - - 1 16 x bps n decimal value to be loaded in to timer a using its hexadecimal equivalent phi2 the clock frequency bps the desired data rate note: one may notice slight differences between the standard rate and the actual data rate. however, transmitter and receiver error of 1.5% or less is acceptable. table 1 -2 timer a values for baud rate selection standard baud rate 1.8432mhz 2.000mhz 2.4576mhz 3.6864mhz 4.000mhz 4.9152mhz 75 $05ff $0682 $07ff $0bff $0d04 $0fff 110 $0416 $046f $0573 $082e $08e0 $0ae8 150 $02ff $0340 $03ff $05ff $0682 $07ff 300 $017f $01a0 $01ff $02ff $0340 $03ff 600 $00bf $00cf $00ff $017f $01a0 $01ff 1200 $005f $0067 $007f $00bf $00cf $00ff 1800 $003f $0044 $0054 $007f $008a $00aa 2400 $002f $0033 $003f $005f $0067 $007f 4800 $0017 $0019 $001f $002f $0033 $003f 9600 $000b $000c $000f $0017 $0019 $001f 19200 $0005 $0006 $0007 $000b $000c $000f 38400 $0002 $0002 $0003 $0005 $0006 $0007 note: shading indicates transmitter or receiver error greater than 1.5%.
western design center w65c134 s march 1, 2000 11 1.10 universal asynchronous receiver/transmitter (uart) the w65c134s microcomputer provides a full duplex universal asynchronous receiver/transmitter (uart) with programmable bit rates. the serial i/o functions are controlled by the asynchronous control and status register (acsr). the acsr bit assignment is shown in figure 1 -9. the serial bit rate is determined by timer a for all modes. the maximum data rate using the internal clock is 62.5k bits per second (phi2 = 1mhz). the asynchronous transmitter and asynchronous receiver can be independently enabled or disabled. all transmitter and receiver bit rates will occur at one sixteenth of the timer a interval timer rate. timer a is forced into an interval timer mode whenever the serial i/o is enabled. whenever timer a is required as a timing source, it must be loaded with the hexadecimal code that selects the data rate for the serial i/o port. refer to table 1 -2 for a table of hexadecimal values tha t represent the desired data rate. wdc standard uart features l 7 or 8 bit data with or without odd or even parity. l the transmitter has 1 stop bit with parity or 2 stop bits without parity. l the receiver requires only 1 stop bit for all modes. l both the receiver and transmitter have priority encoded interrupts for service routines. l the receiver has error detection for parity error, framing error, or over -run error conditions that may require re -transmission of the message. l the receiver interrupt o ccurs due to a receiver data register full condition. l the transmitter interrupt can be selected to occur on either the data register empty (end -of -byte transmission) or both the data register empty and the shift register empty (end -of -message transmissio n) condition. 1.10.1 asynchronous transmitter operation the transmitter operation is controlled by the asynchronous control and status register (acsr). the transmitter automatically adds a start bit, parity bit and one or two stop bits as defined by the acsr. a word of transmitted data is 7 or 8 bits of data. the transmitter data register (artd) is located at address $0023 and is loaded on a write. the receiver is read at this same address. serial data start bit 0 1 2 3 4 5 6 7 parity bit stop bit the transmitter interrupt is controlled by the asynchronous control status register bit acsr1. irqat = acsr0((acsr1b)(data register empty) + (acsr1)(data register and shift register empty)) figure 1 -7 asynchronous tr ansmitter mode with parity
western design center w65c134 s march 1, 2000 12 1.10.2 asynchronous receiver operation the receiver and its selected control and status functions are enabled when acsr5 is set to a "1". the receiver data register (artd) is located at $0023. the data format must have a start bit, 7 or 8 data bits, and one stop bit or one parity bit and one stop bit. the receiver bit period is divided into 16 sub -intervals for internal synchronization. the receiver bit stream is synchronized by the start bit, and a strobe signal is generated at the approximate center of each incoming bit. the character assembly process does not start if the start bit signal is less than one -half the bit time after a low level is detected on the receive data input. a framing error, parity error or an over -run will set ascr7, the receiver error detection bit. an over -run condition occurs when the receiver data register has not been read and new data byte is transferred from the receiver shift register. serial data start bit 0 1 2 3 4 5 6 stop bit stop bit note: the receiver requires only one stop bit but the transmitter supplies two stop bits for older system timing. figure 1 -8 asynchronous receiver data timing a receiver interrupt (irqar) is generated whenever the rec eiver shift register is transferred to the receiver data register. 1.10.3 asynchronous control and status register (acsr) the asynchronous control and status register (acsr) enables the receiver and transmitter and holds information on communication status error conditions. bit assignments and function of the acsr are as follows: acsr0: transmitter enable. the asynchronous transmitter is enabled, the transmitter interrupt (irqat), and txd is enabled on p61 when acsr0=1. when acsr0 is cleared, the acsr1 is cleared, the transmitter will be disabled, the transmitter interrupt will not occur and txd will be disabled on p61. this bit is cleared by a reset. acsr1: transmitter interrupt source select. when acsr1=0, the transmitter interrupt occurs due to a transmitter data register empty condition (end -of -byte transmission). when acsr1=1 the transmitter interrupt occurs due to both the transmitter data and shift register empty condition (end -of -message transmission). the transmitter interrupt is cleared by writing to the transmitter data register ($0023), or by a reset. acsr2: seven or eight -bit data select. when acsr2=0, the transmitter and receiver send and receive 7 -bit data. the transmitter sends a total of 10 bits of information (one start, 7 data, one parity and one stop or 2 stop bits). the receiver receives 9 or 10 bits of information (one start, 7 data, and one stop or one stop and one parity bits).
western design center w65c134 s march 1, 2000 13 when writing to the transmitter in seven bit mode, bit 7 is discarded. when reading from the receive data register during seven bit mode, bit 7 is always zero. when acsr2=1, the transmitter and receiver send and receive 8 -bit data. the transmitter sends 11 bits of information (one start, 8 data, one parity and one stop or two stop bits). the receiver receives 10 or 11 bits of information (one start, 8 data, one stop or one parity and one stop bit). a reset clears acsr2. acsr3: parity enable. when acsr3=0, parity is disabled. a reset clears acsr3. when acsr3=1, parity is enabled for both the transmitter and receiver. acsr4: odd or even parity. when acsr4=0 and parity is enabled, then odd parity is generated where the number of ones is the data register plus parity bit equal an odd number of "1's". when acsr4=1 and parity is enabled, then even parity is generated where the number of ones in the data register plus parity bit equal an even number of "1's". acsr4 is cleared by reset. acsr5: receiver enable. the asynchronous receiver is enabled when acsr5=1. a reset clears acsr5. when acsr5=1 the receiver is enabled and receiver interrupts occurs anytime the contents of the receiver shift register contents are transferred to the receiver data register. the receiver interrupt is cleared when the receive data register is read ($0023). the receive data, rxd, is enabled on p60 when acsr5=1. when acsr5=0, all receiver operation is disabled and all receive logic is cleared, the receiver data register bits 0 -6 are not affected and bit 7 is cleared. acsr6: software semaphore. acsr6 may be used for communications among routines which access the uart. this bit has no effect on the uart operation and is cleared upon a reset. this signal can be thought of as a manually set ?busy? signal. acsr7: receiver error flag. the receiver logic detects three possible error conditions and sets acsr7: parity, framing or over -run. a parity error occurs when the parity bit received does not match the parity generated on the receive data. a framing error occurs when the stop bit time finds a "0" instead of a "1". an over -run occurs when the last data in the receiver data register has not been read and new data is transferred from the receive shift register. acsr7 is cleared by a reset or upon writing a "1" to acsr7. writing a "0" to acsr7 has no effect on acsr7. acsr ($0022) 7 6 5 4 3 2 1 0 transmitter enable transmitter interrupt source select seven or eight bit data select parity enable odd or even parity select receiver enable software semiphore receiver error flag figure 1-9 acsr bit assignments
western design center w65c134 s march 1, 2000 14 1.11 the serial interface bus (sib) the ser ial interface bus (sib) is configured as a token passing local area network, and is intended for inter -chip communications in parallel processing applications. the serial interface bus has four pins associated with its use: chin chout, sdat, and sclk (see section 2.19 for more information). the sib has seven (7) registers associated with its use: state, sr0, sr1, sr2, sr3, scsr, and bar. 1.11.1 the state register the state register is a read -only register that provides the host processor with the timing state of the sib (see figure 1 -13 for more information on activities during each timing state). the state register is the decoded output of a "state machine" that counts up from 0 to 37 and then back to 0 on positive transitions of sclk. only one decoded output is asserted at a time. state has the same value at the same time in all devices and is used to synchronize message transfer. it is reset to state 0 upon system reset. state is normally read only during manufacturing test. a read of th e state register can produce invalid results if the sclk is not synchronous with the processor clock. when the sclk is enabled on the chip with its mpu, it is always synchronized with the sib. state ($0014) 7 6 5 4 3 2 1 0 state 0 0 = not state 0 1 = state 0 state 1 0 = not state 1 1 = state 1 state 2 0 = not state 2 1 = state 2 state 3 through state 34 0 = not state 3 through 34 1 = state 3 through 34 state 35 0 = not state 35 1 = state 35 state 36 0 = not state 36 1 = state 36 state 37 0 = not state 37 1 = state 37 always 0 when read. figure 1-10 sib state register ($0014)
western design center w65c134 s march 1, 2000 15 1.11.2 sr0, sr1, sr2, and sr3 shift register the sr0, sr1, sr2, and sr3 are the four (4) 8 -bit shift registers (32 -bit shift register) that are used to transfer messages from one sib to another sib on a token passing ring network. two to eight sib's may be connected together (see figure 1 -14 serial interface bus (sib) wiring diagram for more information). l sr3 bits sr37, sr36 and sr35 are the bus address register field of the 32 -bit message. all other bits are command, data, or address fields. reading sr3 clears the read pending bit scsr4 and writing sr0 clears the write pending bit scsr0. figure 1 -11 sr0, sr1, sr2, and sr3 shift register 1.11.3 the sib control and status register (scsr). the sib control and status register (scsr) is used for controlling the sib and for reading the status of the sib. the scsr is writable only in the sense that a high level can be written to bits scsr0, scsr2, scsr6 and scsr7. together with the state register, it gives the state of the sib controller. bit scsr6 is used to enable phi2 as the clock source for sclk, bits scsr4 and scsr5 are used for receiving, bits scsr0, scsr1, and scsr2 are used for sending, and state is used for both. the scsr is reset on a system reset. 1.11.3.0 scsr0 is the "write pending" control bit of the scsr. when scsr0 is set to a "1" by the on -chip microprocessor, it means that the processor wants to send a message. it is set on a write of a "1" to scsr0 from the mpu and reset when sr0 is written. 1.11.3.1 scsr1 is the "master" status bit of scsr. when scsr1 gets set to a "1" this means that the sib's microprocessor was requesting master (scsr0 was set to a "1") just before the last time mastery changed. if chin (chain in) is high as well then this device is master when the "token" is passed.
western design center w65c134 s march 1, 2000 16 1.11.3.2 scsr2 is the "previous master" control and status bit. when scsr2 is set to a "1", this means that the sib was master before the last time mastery changed. one device is chosen as previous master (one mpu on the network writes a "1" to scsr2) before the first message is sent. scsr2 is set to a "1" for one sib on the network as part of system initialization upon power up or reset. this bit is ignored during normal system operation. 1.11.3.3 scsr3 is the "message not acknowledged" status bit of scsr. when scsr3 is set to a "1" by the sib logic due to sdat equals a "1" during timing state 36, this means that the last message this sib sent was not acknowledged by the receiver whose address matches the bus address register (bar) field of the message (sr35, sr36 and sr37). 1.11.3.4 scsr4 is the "read pending" status bit of the scsr. when scsr4 is set to a "1" due to a match between the incoming message bar field with the bar, this means that the sib has received a message but its processor has not yet finished reading it. it is reset when sr3, the last byte of the message, is read. 1.11.3.5 scsr5 is the "deaf" status bit of the sib. when scsr5 is set to a "1" th is means that the sib cannot receive a message in progress because when the message started, its processor had not read its previous message. 1.11.3.6 scsr6 is the "serial clock enable" control bit of scsr. when scsr6 is set to a "1" by the on -chip mpu this means that the serial clock generator (phi2) in this device is enabled and provides the serial clock (sclk) for the system. scsr6 is set to a "1" for one sib on the network as part of system initialization upon power up or reset. it is not used as part of the normal communication sequence. 1.11.3.7 scsr7 is the sib interrupt flag bit that is set by a sib interrupt condition and reset to zero by a write of a "1" to scsr7. a write of a "0" has no effect on scsr7. scsr ($0019) 7 6 5 4 3 2 1 0 sib write pending sib master sib previous master sib message not acknowledged sib read pending sib deaf sib serial clock enable sibirq figure 1-12 sib control and status register (scsr) the sib causes a sibirq (sib interrupt) when the sib enable bit of the bus control register is set (bcr2=1) and scsr1=1 (sib master is set), or scsr3=1 isib message not acknowledged), or scsr4=1 (reading pending). sibirq=bcr2 c (scsr1+scsr3+scsr4)
western design center w65c134 s march 1, 2000 17 1.11.4 sequence of events for the sib message transmission. 1.11.4.1 state 0 events (state=$01) the sib controllers wait for some device to req uest mastery. all devices on the serial bus wait for one or more devices to request mastery. at any time any processor with data to send sets scsr0 (write pending) and the sib is in state 0 (state=$01) then the following occurs: 1. sclk stops running . 2. each device with scsr0=1 pulls sdat low to request sclk. 3. sclk restarts and advances the state machine to state 1 (state=$02). 1.11.4.2 state 1 events (state=$02) the sib controllers establish mastery for this message. state 1 determines which devices is master for this message and insures that sdat is high on transition to state 2 (state=$04) in state 1 (state=$02) the following occurs: 1. the device that was master just before transition to state 1 sets scsr2 (previous master), and all other devices reset scsr2. 2. the device with scsr2 set to a "1" makes its chout high. other devices only make chout high if both their chin is high and scsr0=0. thus the first device in the chain after the previous master that has write pending (scsr0=1) is the master for this message. 3. the device that is master for this message outputs a high level on sdat. 4. sclk advances to state 2 (state=$04). 1.11.4.3 state 2 events (state=$04) the master's sib controller waits for data from its processor. the sib waits in state 2 (state=$04) for the master to load its data and the following occurs: 1. sclk stops running. 2. the sib controller that is master sets scsr7 to interrupt and signal its processor that it has acquired mastery. 3. in response to the interrupt the processor should: a) check "read pending" (scsr4) to see if it has received a message before acquiring mastery, and if so read it, thus clearing scsr4; b) check "message not acknowledged" scsr3 to see if the last message it sent was not acknowledged; c) place the data it wants to send in sr0, sr1, sr2, and sr3, and; d) clear "write pending" scsr0 to signal the sib controller that data is there to send. this happens on the trailing edge of the write to sr0 so sr0 must be the last byte written into the shift register. 4. the master pulls sdat low to request sclk. 5. after at least one -half -cycle, sclk advances the state counter to state 3 (state=$08). 1.11.4.4 states 3 through 34 events (state=$08) the message is sent. during state 3 through 34 (state=$08) the sib transfers the message from the master's shift register to all devices that have read their previous messages. 1. any device that had "read pending" (scsr4=1) just before transition to state 3 sets "deaf" scsr5, so that it cannot receive the incoming message on top of the one its processor has not read. 2. while in state 3 -34 (state=$08) the device that is master sends its shift -register data output onto sdat.
western design center w65c134 s march 1, 2000 18 3. any device that does not have "deaf" scsr5 set, including the master, advances its shift register, on sclk positive transitions, thus acquiring the data that was in the master's shift -register. 4. sclk advances the state counter to state 35 (state=$10). 1.11.4.5 sta te 35 events (state=$10) the sib is prepared for acknowledgement. state 35 (state=$10) is for the master to insure that sdat is high on entry to state 36 (state=$20). the device that is master outputs a high level on sdat. sclk advances the state counter to state 36 (state=$20). 1.11.4.6 state 36 events (state=$20) the receive should acknowledge its receipt of the message in state 36 (state=$20). when asserted, the destination device (the device that has sr37,sr36,sr35 equal to bar2,bar1,bar0 and "deaf" scsr5=0) pulls sdat low to acknowledge reception to the master. sclk advances the state counter to state 37 (state=$40). 1.11.4.7 state 37 events (state=$40) the mpu's are interrupted with the result of transmission in the sr's. state 37 (state=$40) is for the master to interrupt and signal its processor if the message it sent was not acknowledged, for the receiver to interrupt and signal its processor that a message is available to read, and for the master to insure that sdat is high on transition to state 0 (state=$01). in state 37 (state=$40) the following occurs: 1. if the master saw sdat high just before the transition to state 37 (state=$40) (meaning there was no acknowledgement) then it sets scsr3 "message not acknowledged" to interrupt and signal its processor that the message was not received. if the master saw sdat low just before the transition to state 37 (state=$40) (meaning there was acknowledgement) then scsr3 is cleared and does not interrupt its processor. 2. the devi ce with scsr5=0 that has the sr37,6,5=bar2,1,0 (message with its address), sets scsr4 "read pending" to interrupt and signal its processor that a message is pending. 3. the master outputs a high level on sdat for the duration of state 37 (state=$40). 4. sclk advances the state counter to state 0 (state=$01). 1.11.4.8 message processing may now be performed by the receiver. the message is read by the receiver's processor in response to the sib interrupt (sibirq) generated by scsr4 "read pending", by reading the message in its shift register, and when finished clears scsr4 "read pending" (on the trailing edge of the read of sr3). the message may now be processed. the next message may now be sent on the sib. 1.11.5 bus address register (bar) the bus address register (bar) contains the address that is used by the receive function logic of the sib to compare against the "address field" (sr37,sr36 and sr35) of the shift register incoming data. when the bar address matches the "address field" of the shift register the host is interrupted indicating that a "message has been received".
western design center w65c134 s march 1, 2000 19 figure 1 -13 serial interface bus (sib) message transmission timing diagram *1 the sdat goes low due to scsr0 (write pending) set in all devices that are requesting the bus. *2 the previous master sets scsr2 (previous master) and sets chout high, all others clear scsr2. the next device with chin high and scsr0 set becomes bus master, and clears chout to low. *3 the bus master interr upts its mpu and the mpu loads the shift register. writing to sr0 clears scsr0 (write pending) and sends the message. the sib waits until the shift register sr0 is written. any device that has scsr4 set (read pending), sets scsr5 (deaf) indicating the mpu never read the last message sent to it. reading sr3 clears scsr4 (read pending). *4 the 32 -bit message is sent by the bus master during states 3 -34. the begin low time begins on the transfer of data to the masters shift register during state 2 and stays low until the first transmit data bit time in state 3. the output data is transferred on the rising edge of sclk with the input data latched on the falling edge of sclk. *5 the bus master sets sdat to '1' signaling the end of transmission. *6 the re ceiver device pulls sdat low signaling the bus master that the message was received. if the receiving device does not pull sdat low then the bus master sets scsr3 (message not acknowledged) indicating the message was not received, and will interrupt its mpu in the next state (state 37). *7 the receiver sets scsr4 (read pending) and interrupts its mpu. the bus master (sending device) outputs a high level on sdat and interrupts its mpu if scsr3 (message not acknowledged) was set in state 36, signaling the message was not received. *8 wait in state 0 for message processing and next message transmission bus request.
western design center w65c134 s march 1, 2000 20 figure 1-14 w65c134s serial interface bus (sib) wiring diagram sr3 ($0018) 7 6 5 4 3 2 1 0 a a a compare logic to sib control logic 7 6 5 4 3 2 1 0 bar ($001a) write for sib bus address; each device on the token ring network should have a unique address. read all "0" figure 1 -15 bus address register (bar)
western design center w65c134 s march 1, 2000 21 1.12 programming model, status register coding and memory map the w65c02s microprocessor programming model, status register coding, system memory map, i/o memory map, vector table, and pin map summarize the w65c134s programming model and gives the functional area where each memory and pin is defined. the w65c134s completely decodes the entire 65536 byte address space of the on -chip w65c02s microprocessor. the system memory map is shown in table 1 -3. the on -chip i/o, timers, control registers, shift registe rs, interrupt registers, and data registers are presented in table 1 -4, i/o memory map. the w65c134s has twenty -two (22) priority encoded interrupts whose addresses are listed in table 1 -5, vector table. figure 1-16 w65c02s microprocessor programming model figure 1-17 w65c02s status register coding
western design center w65c134 s march 1, 2000 22 table 1-3 system memory map address label function ffff ffd0 see table 1-5 vector table (see vector table 1-5) chip select (cs7b) when internal rom disabled by bcr7=1 ffcf f000 rom on-chip mask rom chip select (cs7b) when internal rom disabled by bcr7=1 efff 8000 cs7b chip select (cs7b) 32k block (28672 available) 7fff 0100 cs6b chip select (cs6b) 32k block (32512 available) (note 1) 5fff 4000 cs5b chip select (cs5b) 8k block 3fff 2000 cs4b chip select (cs4b) 8k block 1fff 0100 cs3b chip select (cs3b) 8k block (7836 available) (note 1) 01ff 0140 stack on-chip stack ram (same as 0040-00ff) when pcs33=0 and pcs36=0 (on-chip stack) 013f 0120 cs2b chip select (cs2b) 32 bytes 011f 0100 cs1b chip select (cs1b) 32 bytes 00ff 0040 ram on-chip ram 003f 0030 cs0b chip select (cs0b) 16 bytes 002f 0000 see table 1-4 on-chip i/o (see i/o memory map table 1-4) note 1: when pcs31=1 and/or pcs32=1 then cs1b and/or cs2b are active. cs3b's and cs6b's memory spaces are reduced by cs1b and/or cs2b memory space in order to prevent external bus conflicts.
western design center w65c134 s march 1, 2000 23 table 1 -4 i/o memory map address label function reset value 002f 002e 002d 002c 002b 002a 0029 0028 0027 0026 0025 0024 0023 0022 0021 0020 001f 001e 001d 001c 001b 001a 0019 0018 0017 0016 0015 0014 0013 0012 0011 0010 000f 000e 000d 000c 000b 000a 0009 0008 0007 0006 0005 0004 0003 0002 0001 0000 ---- ---- ier1 ifr1 tmch tmcl tmlh tmll tach tacl talh tall artd acsr pdd6 pd6 pdd5 pdd4 pd5 pd4 bcr bar scsr sr3 sr2 sr1 sr0 state t2ch t2cl t1ch t1cl t2lh t2ll t1lh t1ll tcr2 tcr1 ier2 ifr2 pcs3 pdd2 pdd1 pdd0 pd3 pd2 pd1 pd0 reserved reserved interrupt enable register one interrupt flag register one timer m counter high (read only) timer m counter low (read only) timer m latch high timer m latch low timer a counter high timer a counter low timer a latch high timer a latch low asynch. rxd/txd data register asynch. rxd/txd control/statusregister port 6 data direction register port 6 data register port 5 data direction register port 4 data direction register port 5 data register port 4 data register bus control register sib address register sib control and status register sib shift register 3 sib shift register 2 sib shift register 1 sib shift register 0 sib state register (read only) timer 2 counter high timer 2 counter low timer 1 counter high timer 1 counter low timer 2 latch high timer 2 latch low timer 1 latch high timer 1 latch low timer control register two timer control register one interrupt enable register two interrupt flag register two port 3 chip select register port 2 data direction register port 1 data direction register port 0 data direction register port 3 data register port 2 data register port 1 data register port 0 data register uninitialized uninitialized $00 $00 uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized $00 $00 $00 $00 $00 $00 $00 $00/$89 $00 $00 uninitialized uninitialized uninitialized uninitialized $01 uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized uninitialized $00 $00 $00 $00 $00 $00 $00 $00 $ff $00 $00 $00
western design center w65c134 s march 1, 2000 24 table 1 -5 vector table address label function ffff,e fffd,c fffb,a fff9,8 fff7,6 fff5,4 fff3,2 fff1,0 ffef,e ffed,c ffeb,a ffe9,8 ffe7,6 ffe5,4 ffe3,2 ffe1,0 ffdf,e ffdd,c ffdb,a ffd9,8 ffd7,6 ffd5,4 ffd3,2 ffd1,0 irqbrk irqres nmi irq2 irq1 irqt2 irqt1 ne57 pe56 pe55 pe54 irqsib irqar irqat ---- ---- ne53 ne52 pe51 pe50 ne47 ne46 pe45 pe44 brk vector high, low res vector high, low non-maskable interrupt vector high, low irq2 vector high, low irq1 vector high, low timer 2 interrupt vector high, low timer 1 interrupt vector high, low negative edge interrupt vector high, low positive edge interrupt vector high, low positive edge interrupt vector high, low positive edge interrupt vector high, low sib interrupt vector high, low asynchronous rxd interrupt vector high, low asynch, txd or timer a interrupt vector high, low reserved reserved negative edge interrupt vector high, low negative edge interrupt vector high, low positive edge interrupt vector high, low positive edge interrupt vector high, low negative edge interrupt vector high, low negative edge interrupt vector high, low positive edge interrupt vector high, low positive edge interrupt vector high, low
western design center w65c134 s march 1, 2000 25 table 1 -6 w65c134s 68 lead pin map (continued on next page) pin name control bit signal with control bit=0 signal with control bit=1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 p57 p60 p61 p62 p63 p64 p65 p66 p67 resb web run fclkob fclk be clk clkob phi2 a0 a1 a2 a3 a4 a5 a6 a7 vss a8 a9 a10 a11 a12 a13 a14 bcr5 acsr5 tcr14 acsr0 tcr15 ---- ---- bcr2 bcr2 bcr2 bcr2 ---- ---- bcr3 ---- ---- ---- ---- ---- ---- bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 ---- bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 p57 p60 p61 p62 p63 p64 p65 p66 p67 resb web run fclkob fclk be clk clkob phi2 p00 p01 p02 p03 p04 p05 p06 p07 vss p10 p11 p12 p13 p14 p15 p16 ne57 rxd tin txd tout p62 p63 sclk sdat chin chout resb web run fclkob fclk be clk clkob phi2 a0 a1 a2 a3 a4 a5 a6 a7 vss a8 a9 a10 a11 a12 a13 a14
western design center w65c134 s march 1, 2000 26 table 1 -6 w65c134s 68 lead pin map (continued) pin name control bit signal with control bit=0 signal with control bit=1 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 a15 vdd p30 p31 p32 p33 p34 p35 p36 p37 d0 d1 d2 d3 d4 d5 d6 d7 vss p40 p41 p42 p43 p44 p45 p46 p47 p50 p51 p52 p53 p54 p55 p56 bcr0 + 3 + 7 ---- pcs30 pcs31 pcs32 pcs33 pcs34 pcs35 pcs36 pcs37 + bcr7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 bcr0 + 3 + 7 ---- bcr6 bcr6 bcr6 ---- bcr1 bcr1 bcr1 bcr1 bcr4 bcr4 bcr4 bcr4 bcr5 bcr5 bcr5 p17 vdd p30 p31 p32 p33 p34 p35 p36 p37 p20 p21 p22 p23 p24 p25 p26 p27 vss p40 p41 p42 p43 p44 p45 p46 p47 p50 p51 p52 p53 p54 p55 p56 a15 vdd cs0b cs1b cs2b cs3b cs4b cs5b cs6b cs7b d0 d1 d2 d3 d4 d5 d6 d7 vss nmib irq1b irq2b p43 pe44 pe45 ne46 ne47 pe50 pe51 ne52 ne53 pe54 pe55 pe56
western design center w65c134 s march 1, 2000 27 section 2 pin function description w65c134s interface requirements this section describes the interface requirements for the w65c134s single chip microcomputer. figure 2 -1 is the interface diagram for the w65c134s, while figures 2 -2 and 2-3 show the 68 lead plastic chip carrier and 80 lead quad flat pack pinout configurations, respectively. w65c02s static cpu port 0 <8> p0x/axx vdd ? 192 x 8 ram port 1 <8> p1x/axx resb web ? ? 4096 x 8 rom port 2 <8> p2x/dx run flckob ? ? interrupt regs & logic port 3 8> p3x/csxb (output only) fclk be ? ? control regs & logic port 4 <8> p4x/nmb, irq1b, irq2b, pe44- 46, ne47 clk clkob ? ? clock logic port 5 <8> p5x/pe5x, ne5x phi2 vss ? ? 4x16 bit timers port 6 <8> p6x/rxd, tin, txd, tout, sclk, sdat, chin, chout sib uart figure 2-1 w65c134s interface diagram
western design center w65c134 s march 1, 2000 28 figure 2-2 w65c134s 68 lead chip carrier pinout
western design center w65c134 s march 1, 2000 29 figure 2-3 w65c134s 80 lead quad flat pack pinout
western design center w65c134 s march 1, 2000 30 2.1 web write enable (web) (active low) the web signal is high when the microprocessor is reading data from external memory or i/o and high when it is reading or writing to internal memory or i/o. when web is low the microprocessor is writing to external memory or external i/o. the web signal is bidirectional; when be is low web is an input for dma operations to on -chip ram or i/o. when be is high during phi2 low the internal microprocessor controls web. 2.2 run and sync outputs with wai and stp defined (run) 2.2.1 the run function of the run output is pulled low as the result of a wai or stp instruction. run is used to signal an external oscillator to start phi2. the processor is stopped when run is low. 2.2.2 when bcr3=1 (ice mode), the sync funct ion (sync=1 indicates an opcode fetch) is multiplexed on run during phi2 low time and run is multiplexed during phi2 high time. when bcr3=0 (normal operating mode), the run function is output during the entire clock cycle. the ice module demultiplexes run to provide full emulation capability for the run function. 2.2.3 the be input has no effect on run. 2.2.4 when run goes low the phi2 signal may be stopped when high or low; however, it is recommended phi2 stop in the high state. when run goes high due to an enabled interrupt or reset, the internal phi2 clock is requested to start. the clock control function is referred to as the run function of run. 2.2.5 the wai instruction pulls run low during phi2 high time. run stays low until an enabled interrupt is requested or until resb goes from low to high, starting the microprocessor. 2.2.6 the stp instruction pulls run low during phi2 high time and stops the internal phi2 clock. run remains low and the clock remains stopped until an enabled interrupt is requested or resb goes from low to high. 2.2.7 fclk can be started or stopped by writing to timer control register one (tcr12) bit 2. when tcr12=0 (reset forces tcr12=0), fclk is stopped. when tcr12=1, fclk is started. when starting fclk oscillator, the system software should wait (100 milliseconds or an appropriate amount of time) for the oscillator to be stable before using fclk. 2.3 phase 2 clock output (phi2) phi2 output is the main system clock used by the microprocessor for instruction timing, general on -chip memory, and i/o timing. phi2 also is used by the timers when enabled for counting phi2 clock pulse. the phi2 clock source is either clk or fclk depending on the value of timer control register one bit 1 (tcr11). when tcr11=0, then clk is the phi2 clock source. when tcr11=1, then fclk is the phi2 clock source. 2.4 clock inputs (clk, fclk), clock outputs (clkob, fclkob) clk and fclk inputs are used by the timers for phi2 system clock generation, counting events or implementing real time clock type functions. clk should always be equal to or less than one -fourth the fclk clock rate when fclk is running (see the timer description for more information). clkob, fclkob outputs are the inverted clk and fclk inputs that are used for oscillator circuits that employ crystals or a resistor -capacitor time base. timer control register one bit 1 (tcr11) selects if clk (tcr11=0) or fclk (tcr11=1) is used as the phi2 clock source.
western design center w65c134 s march 1, 2000 31 2.5 bus enable and rdy input (be) 2.5.1 be controls the address bu s, data bus and web signals. when resb goes high signaling the power -up condition, the processor starts; and if be was low when resb went from low to high, then the bus control register (bcr) bits 0, 3, and 7 (bcr0, bcr3, and bcr7) are set to 1 (emulation mode). 2.5.2 after resb goes high be controls the direction of the address bus (a0 -a7, a8 -a15), data bus (d0 -d7) and web. 2.5.3 when be goes low during phi2 low time, the address bus and web are inputs, providing for dma (direct memory and i/o access) for emulation purposes. data from d0 -d7 is written to any register addressed by a0 -a15 when web is low. data is read from d0 -d7 when web is high. the w65c02s is stopped when be is low. 2.5.4 when be is high, the a0 -a15, d0 -d7 and web are controlled by t he on -chip microprocessor. 2.5.5 when be is pulled low during phi2 high time, be does not affect the direction of the address, data bus and web signals. when be is pulled low in phi2 high time, the w65c02s is stopped so that the processor may be single stepped in emulation. be = be . (rdy + phi2b) (this logic is on the ice to provide the emulation interface normally used for w65c02s systems.) notes: 1) address and web are inputs with data bus i nput except when reading on -chip i/o registers or memory. use this mode for dma. 2) w65c02s stopped with rdy function of be pin. when bcr3=1, the w65c02s read or write of internal i/o register or memory is output on the external data bus so that the internal data bus may be traced in emulation. figure 2 -3 be timing relative to phi2
western design center w65c134 s march 1, 2000 32 2.6 reset input/output resb ( resb) 2.6.1 when resb is low for 2 or more processor phi2 cycles all activity on the w65c134s stops and the chip goes into the static low power state. 2.6.2 after a reset, all i/o pins become inputs. because of nor gates on the inputs, resb disables all input buffers. the inputs will not float due to the bus holding devices. inputs that are unaffected by resb are be and web. 2.6.3 w hen resb goes from low to high, run goes high, the bus control register is initialized to $89 if be is low or to $00 if be is high. the mpu then begins the power -up reset interrupt sequence in which the program counter is loaded with the reset vector that points to the first instruction to be executed. (see wdc's w65c02 microprocessor data sheet for more information and instruction timing.) 2.6.4 the reset sequence takes 9 cycles to complete before loading the first instruction opcode. 2.6.5 resb is a bidirectional pin which is pulled low internally for "restarting" due to a "monitor time out", timer m times out causing a system reset. (see section 1.5, the timers for more information.) 2.7 positive power supply (vdd) vdd is the positive power supply and has a range given in table 3-4. 2.8 internal logic ground (vss) vss is the system logic ground. all voltages are referenced to this supply pin. 2.9 i/o port pins ( pxx) 2.9.1 all ports, except port 3, which is an output only port, are bidirecti onal i/o ports. each of these bidirectional ports has a port data register (pdx) and port data direction register (pddx). a zero ("0") in pddxx defines the associated i/o pin as an input with the output transistors in the "off" high impedance state. a one ("1") in pddxx defines the i/o pin as an output. a read of pdx always reads the pin. after reset, all port pins become input pins with both the data and data direction registers reset to 0. the inputs will not float due to the bus holding devices. 2 .9.2 port 3 has an associated chip select register (pcs3) that is used to enable chip selects (csxb); this register is defined in table 1 -3 system memory map. a "1" in bit x of pcs3 enables chip select csxb to be output over p3x while a "0" in pcs3x specifies the value in the output data register is to be output on p3x. port 3 data register is set to all "1's" after reset, and pcs3 is cleared to all "0's" after reset, except if bcr7=1 then cs7b is enabled.
western design center w65c134 s march 1, 2000 33 2.10 address bus (axx) ports 0 and 1 are also the address bus a0 -a15 when configured by the bus control register (bcr). (see section 1.4 for bcr mode selection.) when bcr0 and bcr7 are set to "1" and bcr3=0 (normal operating mode) for external memory addressing, axx are all "1's" when addressing on -chip memory. when bcr3=1 (ice mode), the address bus is always active so that the ice can trace internal read and write operations. 2.11 data bus (dx) port 2 is the data bus d0 -d7 when configured by the bus control register (bcr). (see section 1.4 f or bcr mode selection.) when bcr0 and bcr7 are set to a "1" and bcr3=0 (normal operating mode) for external memory addressing, dx are all "1's" when addressing on -chip memory. when bcr3=1 (ice mode), the data bus is always active so that the ice can trace internal read and write operations. during external memory cycles the data bus is in the hi -z state during phi2 low time. 2.12 positive edge interrupt inputs (pexx) port pins p44, p45, p50, p51, p54, p55, and p56 have the positive edge sensitive interrupt inputs (pe44, pe45, pe50, pe51, pe54, pe55, and pe56) multiplexed with the i/o. when the pin is enabled as an edge interrupt (as defined by the bus control register (bcr)), an interrupt is generated, and the associated bit is set (by an internal one - shot circuit) in the interrupt flag register (ifrx) on a positive transition from "0" to "1". the transition from "1" to "0" has no effect on the ifr. when the associated interrupt enable register bit (ierx) is set to a "1", the mpu will be interrupted provided the interrupt flag bit in the mpu status register p (i flag) is cleared to a "0". when the i flag is "1", interrupts are disabled. 2.13 negative edge interrupt inputs (nexx) port pins p46, p47, p52, p53, and p57 have the negative edge sensitive interrupt inputs (ne46, ne47, ne52, ne53, and ne57) multiplexed with the i/o. when the pin is enabled as an edge interrupt (as defined by the bus control register (bcr)), an interrupt is generated, and the associated bit is set (by an internal one -shot ci rcuit) in the interrupt flag register (ifrx) on a negative transition from "1" to "0". the transition from "0" to "1" has no effect on the ifr. when the associated interrupt enable register bit (ierx) is set to a "1", the mpu will be interrupted provided the interrupt flag bit in the mpu status register p (i flag) is cleared to a "0". when i equals a "1", interrupts are disabled. 2.14 chip select outputs (active low) (csxb) the csxb chip select outputs are enabled (individually) as outputs on port 3 with the pcs3x (port 3 chip select register). chip select 7, cs7b, is also automatically enabled by bcr7=1. each of the eight chip selects is dedicated to one block of external memory; the mapping of each chip select to external addresses is given in table 1 -3 system memory map. chip selects cs3b, cs4b, cs5b, cs6b, and cs7b are considered "clocked" chip selects. this means that they only become active during phi2 high time. chip selects cs0b, cs1b, and cs2b are "not clocked," and are active anytime the address bus is in the appropriate memory block.
western design center w65c134 s march 1, 2000 34 2.15 level sensitive interrupt request inputs (irqxb) port pins p41 and p42 i/o functions are multiplexed with irq1b and irq2b level sensitive interrupt inputs that are selected by bus control register bit 6 (bcr6). when irqxb is held low the associated interrupt flag is set to a "1" in the interrupt flag register two (ifr2). when the associated interrupt enable register two (ier2) bit is set to a "1" the mpu will be interrupted provided the i flag of the mpu is cleared to a "0" allowing interrupts. unlike the edge interrupts, which do not hold the interrupt bit set, an interrupt will be generated as long as irqxb is low. 2.16 non -maskable edge interrupt input (nmib) port pin p40 i/o function is multiplexed with nmib edge triggered interrupt and is controlled by bus control register bit 6 (bcr6). when nmib is selected by setting bcr6 equal to "1", the mpu will be interrupted on all negative edges of nmib. since the i flag cannot prevent nmi - from in terrupting, nmib is thought of as non -maskable, once enabled in the bus control register. 2.17 asynchronous receive input/transmitter output (rxd,txd) the w65c134s has a full duplex universal asynchronous receiver and transmitter (uart) that may be enabled by the asynchronous control and status register (acsr). when the receiver is enabled by acsr5=1 then port pin p60 becomes the asynchronous receiver input (rxd). when the transmitter is enabled by acsr0=1, then port pin p61 becomes the asynchronous transmitter output (txd). 2.18 timer a input and output (tin, tout) timer a is controlled by tcr1x (see tcr1x for more information). when the uart is not in use, timer a can be used for counting input negative pulses on tin. timer a can also be used to put out a square wave or rectangular wave form on tout. when counting negative pulses on tin, the tin frequency should always be less than one -half the frequency of phi2. tout changes state on every time -out of timer a; therefore, varying waveform and frequency depends on the timer latch values and may be modified under software control. 2.19 the serial interface bus (sib) pins. (see figure 1 -13 serial interface bus (sib) message transmission timing diagram.) 2.19.1 chin serial interface bus (sib) ch ain input for token passing. chin (chain input) is connected to chout (chain output) of the previous device on the chain. when high it indicates that this device can be master because all devices between the previous master and this device are not master. 2.19.2 chout sib chain output for token passing. chout goes to chin of the next device on the chain. 2.19.3 sclk serial clock for the sib. sclk is connected to all devices. it is connected to the output of the serial clock generator in the device in which the clock generator is enabled. it synchronously advances the state machines for sending and receiving in all devices and also shifts data serially from the sending device to a receiving device. 2.19.4 sdat serial data for the sib. sdat is con nected to all devices. when it is not being driven during a data transfer, it should be connected to an external current source to suppress noise transients. when a message is not being sent, a device that wants to send a message pulls it low to start the serial clock generator. when a message is being sent, the device that is sending uses it to convey data to all other devices. at the end of the message the receiving device uses it to acknowledge reception to the master.
western design center w65c134 s march 1, 2000 35 section 3 timing, ac and dc characteristics 3.1 absolute maximum ratings (note 1) table 3-1 absolute maximum ratings rating symbol value supply voltage vdd -0.3 to +7.0v input voltage vin -0.3 to vdd +0.3v storage temperature ts -55 c to +150 c this device contains input protection against damage due to high static voltages or electric fields; however, precautions should be taken to avoid application of voltages higher than the maximum rating. notes: 1. exceeding these ratings may result in permanent damage. functional operation under these conditions is not implied.
western design center w65c134 s march 1, 2000 36 3.2 dc characteristics vdd = 2.8v to 5.5v (except where noted), vss = 0v,ta = -40 c to +85 c (except where noted) table 3-2 dc characteristics symbol min max unit input high threshold voltage clk, fclk, resb, all other inputs vih .9xvdd 0.7xvdd vdd+0.3 vdd+0.3 v v input low threshold voltage clk, fclk, resb, all other inputs vil vss-0.3 vss-0.3 .1xvdd .3xvdd v v input leakage current (vin=vss to vdd, vdd=5.5v) all inputs iin -1 +1 ua output high voltage ioh=-100ua, vdd=2.8v all outputs voh 0.9xvdd - v output low voltage iol=100ua, vdd=2.8 all outputs vol - .1xvdd v supply current (no load 2.8v and all on-chip 5.5v circuits operating) icc - - 2 4 ma/mhz ma/mhz supply current (no load) ta= 25 c reset condition resb, be=vss; clk=32768hz, vdd=5.5v fclk=hi, phi2=hi stp condition clk=hi, vdd=2.8v fclk=hi, phi2=hi wait for interrupt condition clk=32768hz fclk=hi, vdd=2.8v ires istp iwai - - - 5 1 5 ua ua ua capacitance (sample tested) (vin=0, ta=25 c, f=1mhz) all pins except vss, vdd cin - 10 pf
western design center w65c134 s march 1, 2000 37 3.3 ac characteristics ta ble 3-3 ac characteristics timing parameter definition tisa tiha toda toha tisd tihd todd tohd tisb tihb todsy tisrr tihrr todrn tohrn tisp tihp todp tohp tisi tihi tiss tihs tods tohs tisc tihc todc tohc tisu tihu todu tohu todd (dma) todph todsc todcsr todcsf tr tf tbr tbv cext tcyc tpwl tpwh tcyc2 tpwl2 tpwh2 tcycf tpwlf tpwhf address input setup from phi2 address input hold from phi2 address output delay from phi2 address output hold from phi2 data input setup from phi2 data input hold from phi2 data output delay from phi2 data output hold from phi2 be input setup from phi2 be input hold from phi2 sync output delay from phi2 rdy/resb input setup from phi2 rdy/resb input hold from phi2 run output delay from phi2 run output hold from phi2 port input setup from phi2 port input hold from phi2 port output delay from phi2 port output hold from phi2 interrupt input setup from phi2 interrupt input hold from phi2 serial data input setup from sclk serial data input hold from sclk serial data output delay from sclk serial data output hold from sclk chain input setup from sclk chain input hold from sclk chain output delay from slck chain output hold from sclk uart data input setup from phi2 uart data input hold from phi2 uart data output delay from phi2 uart data output hold from phi2 data output delay from phi2 (rom read) phi2 output delay from clk/fclk sclk output delay from phi2 cs output delay from phi2 rising cs output delay from phi2 falling fclk/clk risetime fclk/clk falltime be to resb be to d0-7, a0-15, web valid external capactive load clk cycle time clk low time clk high time phi2 cycle time phi2 low time phi2 high time fclk cycle time fclk low time fclk high time
western design center w65c134 s march 1, 2000 38 3.4 ac parameters table 3-4 ac parameters vdd=1.8v 100 khz #2,3 vdd=2.8v 1 mhz #2,3 vdd=5v+/-10% 2 mhz #2,3 vdd=5v+/-10% 4 mhz #2,3 units timing parameter min max min max min. max min max tisa tiha toda toha tisd tihd todd tohd tisb tihb todsy tisrr tihrr todrn tohrn tisp tihp todp tohp tisi tihi tiss tihs tods tohs tisc tihc todc tohc tisu tihu todu tohu todd (dma) todph todsc todcsr todcsf tochcn tr tf tbr tbv cext tcyc #1 tpwl tpwh tcyc2 tpwl2 tpwh2 tcycf tpwlf tpwhf 3960 20 - 20 2700 20 - 10 3900 20 - 700 20 - 20 2700 20 - 20 800 20 800 20 - 20 800 20 - - 800 20 - 10 - - - 0 0 - - - 2000 - 50 16000 8000 8000 tcycf . 5*tcyc2 .5*tcyc2 4000 2000 2000 - - 2800 - - - 3300 - - - 2700 - - 3300 - - - 2800 - - - - - 2900 - - - 7500 20 - - 3000 - 3800 2000 2000 1000 1000 4500 100 100 - 1900 - inf. inf. inf. inf. inf. inf. inf. inf. inf. 460 20 - 20 270 20 - 10 390 20 - 70 20 - 20 270 20 - 20 80 20 80 20 - 20 200 20 - - 80 20 - 10 - - - 0 0 - - - 200 - 50 4000 2000 2000 tcycf .5*tcyc2 .5*tcyc2 1000 500 500 - - 280 - - - 330 - - - 270 - - 330 - - - 280 - - - - - 290 - - - 750 20 - - 300 - 380 200 200 100 100 450 50 50 - 190 - inf. inf. inf. inf. inf. inf. inf. inf. inf. 210 20 - 20 100 20 - 10 180 20 - 40 20 - 20 100 20 - 20 40 20 40 20 - 20 100 20 - - 40 20 - 10 - - - 0 0 - - - 100 - 50 2000 1000 1000 tcycf .5*tcyc2 .5*tcyc2 500 250 250 - - 180 - - - 150 - - - 150 - - 150 - - - 180 - - - - - 170 - - - 375 20 - - 150 - 200 100 100 50 50 225 25 25 - 90 - inf. inf. inf. inf. inf. inf. inf. inf. inf. 85 20 - 20 60 20 - 10 75 20 - 65 20 - 20 60 20 - 20 25 20 25 20 - 20 60 20 - - 25 20 - 10 - - - 0 0 - - - 35 - 50 1000 500 500 tcycf .5*tcyc2 .5*tcyc2 250 125 125 - - 90 - - - 75 - - - 75 - - 75 - - - 90 - - - - - 90 - - - 190 20 - - 75 - 100 50 50 25 25 125 15 15 - 50 - inf. inf. inf. inf. inf. inf. inf. inf. inf. ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns ns pf ns ns ns ns ns ns ns ns ns
western design center w65c134 s march 1, 2000 39 3.5 ac timing diagram notes 1.tcyc must always be equal to or greater than four times tcycf when fcl k is running. 2.rise and fall times for all signals are measured on a sample basis from .3xvdd to .7xvdd. the rise and fall times are not programmable on the automated test system that is used for production testing. a typical rise and fall time is 5 - 10ns; therefore, the spec indicates the duty cycle of the clock as tested (tpwl=tcyc/2 -tf). the rise and fall times indicate output rise and fall times. the most critical rise and fall times are for phi2 because all timing is related to phi2. the inp ut rise and fall times can affect the input setup time (tis), output delay time (tod) and hold time (th). this must be taken into account in an application. at 2mhz and 4mhz the worst case input rise and fall times may prevent a system from working. 3. hold time for all inputs and outputs is relative to the associated clock edge.
western design center w65c134 s march 1, 2000 40 3.6 ac timing diagrams figure 3-1 ac timing diagram #1
western design center w65c134 s march 1, 2000 41 notes: 1. voltage levels shown are vl = vss and vh = vdd. 2. measurement points shown are .5xvdd and .5xvdd. 3. clk can be asynchronous, tcyc equal or greater than 4xtcycf. 4. the phi2 and csxb timing is controlled by tcr11. when tcr11=0 phi12 and csxb are related to clk. when tcr11=1, phi2 and csxb are related to fclk. figure 3-2 ac timing diagram #2
western design center w65c134 s march 1, 2000 42 figure 3-3 ac timing diagram #3
western design center w65c134 s march 1, 2000 43 figure 3-4 ac timing diagram #4
western design center w65c134 s march 1, 2000 44 figure 3-5 ac timing diagram #5
western design center w65c134 s march 1, 2000 45 section 4 ordering information w65c134s8pl-8 description w65c w65c = standard product product identification number 134s foundry process 8 blank = 1.2u 8 = .8u package pl pl = plastic leaded chip carrier, 68 pins q = quad flat pack, 80 pins temperature/processing blank = - 40 c to + 85 c speed designator -8 -8 = 8mhz ____________________________________________________________________________________ to receive general sales or technical support on standard product or information about our module library licenses, contact us at: the western design center, inc. 2166 east brown road mesa, arizona 85213 usa phone: 480 -962 -4545 fax: 480 -835 -6442 e-mail: information@westerndesigncenter.com web: http://www.westerndesigncenter.com _______________________________________________________________________________________ warning: mos circuits are subject to damage from static discharge internal static discharge circuits are provided to minimize part damage due to environmental static electrical charge build -ups. industry established recommendations for handling mos circuits include: 1. ship and store product in conductive shipping tubes or conductive foam plastic. never ship or store product i n non -conductive plastic containers or non -conductive plastic foam material. 2. handle mos parts only at conductive work stations. 3. ground all assembly and repair tools.
western design center w65c134 s march 1, 2000 46 section 5 application information 5.1 w65c134s block diagrams (pages 46-51) note: pin numbers apply to plcc package only. figure 5-1 w65c134s block diagram
western design center w65c134 s march 1, 2000 47 figure 5-2 w65c134s interrupt controller block diagram figure 5-3 w65c134s timer 1 and 2 (t1 and t2) block diagram
western design center w65c134 s march 1, 2000 48 figure 5-4 w65c134s timer a and m (ta and tm) block diagram
western design center w65c134 s march 1, 2000 49 figure 5-5 universal asynchronous receiver transmitter (uart) block diagram
western design center w65c134 s march 1, 2000 50 figure 5-6 serial interface bus (sib) block diagram
western design center w65c134 s march 1, 2000 51 5.2 external rom startup with w65c134s mask roms future versions of the w65c134s mask rom may vary, but each version should contain standard machine code that allows startup to an external memory. standard versions of the w65c134s will always contain such a startup option. anyone writing a custom mask rom for the 134 is encouraged to follow this standard. the startup standard allows a program in an external memory to be executed after reset if the startup code wdc (in ascii, $57, $44, $43) is present at addresses $8000 -$8002 or $0200 -$0202. if the startup code is found at either set of addresses, the mask rom does a jmp instruction to $8004 or $0204 respectively. w65c134s chip selects cs6 and cs7 can be used to address the memories. the startup standard was set (and will be followed) with the original wdc -101 mask rom in the early w65c134s prototypes. a sample startup program (modified from wdc -101) appears below. the w65c02s reset vector ($fffc) should be set to startup. startup lda #$01 ;enable external memory bus tsb bcr ;(bcr=$001b) lda #$c0 ;enable chip selects cs6-, cs7- sta pcs3 ;on p36, p37 (pcs3=$0007) ; try80 lda $8000 ;check $8000 for 'wdc' cmp #'w' bne try02 lda $8001 cmp #'d' bne try02 lda $8002 cmp #'c' bne try02 jmp $8004 ;execute external rom program ; try02 lda $0200 ;check $0200 for 'wdc' cmp #'w' bne noext lda $0201 cmp #'d' bne noext lda $0202 cmp #'c' bne noext jmp $0204 ;execute external rom program ; noext jmp mask_rom_program ;execute program in mask rom
western design center w65c134 s march 1, 2000 52 5.3 recommended clock and fclock oscillators the following circuit is a possible clocking system for the w65c134s providing both 32.768khz and 2.0mhz frequencies. the 32.768khz clock is well suited for setting up a time of day clock with one of the w65c134s's internal timers. in constructing this oscillator circuit, components should be kept as physically close to the w65c134s as possible and any excess in component leads should be trimmed off. c1 = 47pf r0 = 100 w c2 = 27pf r1 = 800k w c3 = 22pf r2 = 2.6m w c4 = 5-30pf variable r3 = 150k w xtal1 = 4 mhz xta l2= 32.768 khz note: 1. depending on trace layout or construction techniq ues used, values may need to be altered slightly. 2. pin numbers only apply to plcc package only. figure 5 -7 oscillator circuit
western design center w65c134 s march 1, 2000 53 figure 5 -8 circuit board layout for oscillator circuit
western design center w65c134 s march 1, 2000 54 figure 5-9 w65c134s resonator circuit 5.4 wait state information and uses for the be pin the be pin has two functions; allowing dma into the w65c134s (be function) and stopping the microprocessor (rdy function). changing be during phi2 low time changes the be function; changing be during phi2 high time changes rdy. if you want to stop the processor, you should pull be low in the phi2 high time for as many cycles as needed. pulling the be low in phi2 high time does not tristate the memory bus. note also that the phi2 pin does not stay high while rdy is pulled low; phi2 going out will continue normally regardless of be. pulling be low during phi2 low time turns off the output buffers on the address pins; however, the pins do not float because of weak bus holding devices. note that the addresses are really inputs to the w65c134s when be is low. if an external driver puts an address on the bus while be is low, internal memory (ram, rom, or memory -mapped registers) will be accessed depending on the state of web. if you have no desire to turn off the busses when you slow down for the peripheral chips, you should hold be high while you hold rdy low. that is, be = (phi2bar or rdy) where phi2bar is phi2 inverted and delayed at least 10ns. rdy is your signal to request the microprocessor to stop. if you are not using the fclk oscillator, another (less desirable) way to stop the microprocessor is to extend the low or high time of fclk as long as you need to. this will work only if you know the microprocessor is using fclk, not clk.
western design center w65c134 s march 1, 2000 55 5.5 w65c134s embedded system figure 5-10 w65c134spcb embedded system development board block diagram system-chip development using wdc?s core library system development with wdc chips embedded system development wi th wdc boards features: .8u 4mhz w65c134s 8-bit mcu, 1 serial port, full network, monitor program, 20 i/o lines, 32k sram, 32k eprom, and w65c22s versatile interface adapter peripheral chip


▲Up To Search▲   

 
Price & Availability of W65C134SPL-8

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X